import { ref, computed, reactive } from 'vue';
import "jbecool/jbecool.uniapp.min.js";
import VMControl from '@/js/VMControl.js';

const D = new VMControl("OBEvolutionAI.CollegeControl", "collegeId");
// 添加schoolId属性用于存储当前学校ID
D.schoolId = ref(null);

// 导航到系管理
D.navigateToDepts = function (college) {
    uni.navigateTo({
        url: "/pages/admin/dept-management?collegeId=" + college.collegeId,
    });
};

// 添加设置schoolId的方法
D.setSchoolId = function (schoolId) {
    this.schoolId.value = schoolId;
};

export default D; 